package com.taotao.rest.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.taotao.common.pojo.TaotaoResult;
import com.taotao.rest.service.IItemDescService;

/**
 * 获取商品描述信息
 * 
 * @author Administrator
 *
 */
@Controller
@RequestMapping("/item/desc")
public class ItemDescController {

	@Autowired
	private IItemDescService itemDescService;

	@RequestMapping(value = "/info/{itemId}")
	@ResponseBody
	public TaotaoResult getItemDescByItemId(@PathVariable Long itemId) {
		if (itemId != null) {
			TaotaoResult taotaoResult = this.itemDescService
					.getItemDescById(itemId);
			return taotaoResult;
		}
		return null;
	}
}
